package com.example.demo.service.userInfo;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.example.demo.domain.userInfo.UserRoleKey;
import com.example.demo.mapper.userInfo.UserRoleMapper;
@Service("userRoleService")
public class UserRoleServiceImpl implements UserRoleService{
	@Autowired
	private UserRoleMapper userRoleMapper;

	@Override
	public int deleteByPrimaryKey(UserRoleKey key) {
		// TODO Auto-generated method stub
		return this.userRoleMapper.deleteByPrimaryKey(key);
	}

	@Override
	public int insert(UserRoleKey record) {
		// TODO Auto-generated method stub
		return this.userRoleMapper.insert(record);
	}

	@Override
	public int insertSelective(UserRoleKey record) {
		// TODO Auto-generated method stub
		return this.insertSelective(record);
	}

	@Override
	public int deleteUserRoleByUserId(Integer uid) {
		// TODO Auto-generated method stub
		return this.userRoleMapper.deleteUserRoleByUserId(uid);
	}

	@Override
	public int deleteUserRole(Integer[] ids) {
		// TODO Auto-generated method stub
		return this.userRoleMapper.deleteUserRole(ids);
	}

	@Override
	public int countUserRoleByRoleId(Integer roleId) {
		// TODO Auto-generated method stub
		return this.userRoleMapper.countUserRoleByRoleId(roleId);
	}

}
